#include"mystdio.h"
#include<string.h>
#include<unistd.h>
int main()
{
    MyFile* fp=MyFopen("./log.txt","a");
    if(!fp)
    {
        perror("fopen");
        return 1;
    }
    int cnt=10;
    while(cnt--)
    {
        char* msg=(char*)"hello file";
        MyFwrite(fp,msg,strlen(msg));

        sleep(1);
    }

    MyFclose(fp);
    return 0;
}
